package com.jichaoyun.service;

import com.jichaoyun.common.model.PagedResult;
import com.jichaoyun.model.entity.StationInspection;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jichaoyun.model.vo.InspectVo;
import com.jichaoyun.model.vo.StationInspectionVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.util.List;

/**
* @author ljc
* @description 针对表【station_inspection】的数据库操作Service
* @createDate 2023-12-09 13:42:05
*/
public interface StationInspectionService extends IService<StationInspection> {

    /**
     * 根据日期返回巡检记录
     * @param date
     * @return
     */
//    PagedResult getStationInspectionInfo(LocalDate date, Integer pageNo, Integer pageSize);
    List<StationInspectionVo> getAllStationInspection();
    List<StationInspectionVo> getAllStationInspection(LocalDate dateTime);

    List<InspectVo> getInspectInfo(String date, String type);
    Integer insertInspectInfo(InspectVo inspectVo);

    String insertInspectPhoto(Integer num, MultipartFile photo);
    String insertSignatureInspectPhoto(Integer num,MultipartFile photo);

    /**
     * 某日巡检信息导出到excel
     * @param date
     * @param response
     * @throws IOException
     */
    void getStationInspectionExcel(String date,HttpServletResponse response) throws IOException;

    /**
     * 历史巡检信息导出到excel
     * @param response
     * @throws IOException
     */
    void getStationInspectionExcel(HttpServletResponse response) throws IOException;
}
